package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "sys_wc_sign")
public class WcSign implements Serializable {

	private static final long serialVersionUID = 5432397084054373481L;
	@Id
	@Column(name = "own_app_nvarchar", columnDefinition = "varchar(255)")
	private String ownApp;
	@Column(name = "access_token_nvarchar", columnDefinition = "varchar(255)")
	private String accessToken;
	@Column(name = "token_expiration_datetime", columnDefinition = "datetime(3)")
	private Date tokenExpiration;
	@Column(name = "js_api_ticket_nvarchar", columnDefinition = "varchar(255)")
	private String js_apiTicket;
	@Column(name = "ticket_expiration_datetime", columnDefinition = "datetime(3)")
	private Date ticketExpiration;
	@Column(name = "app_id_nvarchar", columnDefinition = "varchar(255)")
	private String appID;
	@Column(name = "app_secret_nvarchar", columnDefinition = "varchar(255)")
	private String appSecret;
}
